package com.waghost.bridalgown.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("reserve")
public class Reserve {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    @TableField("bridal_gown_id")
    private Integer bridalGownId;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @TableField("order_id")
    private String orderId;
    @TableField("price")
    private BigDecimal price;
    @TableField("address")
    private String address;
    @TableField("phone")
    private String phone;
    @TableField("bz")
    private String bz;
    @TableField("`status`")
    private Integer status;
    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String header;
    @TableField(exist = false)
    private BridalGown bridalGown;
    @TableField("parcel_brand")
    private String parcelBrand;
    @TableField("parcel_code")
    private String parcelCode;
    @TableField("parcel_name")
    private String parcelName;
    @TableField("update_time")
    private Date updateTime;

}
